package com.controller;

import com.service.Impl.StudentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class IndexController {
    @Autowired
    StudentServiceImpl studentService;
    /**
     *
     * 跳转到首页
     * @return java.lang.String
     * @author 末日流光
     * @date 2022/5/13 18:11
     */

    @RequestMapping(value = "/")
    public String root(){
        return "index";
    }
    /**
     *
     * 后台管理首页
     * @param model
     * @return java.lang.String
     * @author 末日流光
     * @date 2022/5/13 18:11
     */

    @RequestMapping(value = "/admin/main")
    public String mainjsp(Model model){
        return "main";
    }

}
